package com.lxc.networkdemo.apis

import com.lxc.networkdemo.bean.BaseData
import com.lxc.networkdemo.bean.DataBean
import kotlinx.coroutines.Deferred
import retrofit2.Response
import retrofit2.http.*

/**
 *@author: xuancai.Liu
 *@create: 2021-09-06 17:23
 *@program: NetDemo
 *@description:
 * Api接口类可以按业务区分，也可按页面区分
 */
interface UserApis {
    @FormUrlEncoded
    @POST("lxc/listdata")
    fun getListDataAsync(@Field("param1") param1: Int, @Field("param2") param2: Int): Deferred<Response<BaseData<List<DataBean>>>>
}